<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<!-- 在fragments下的header.html里面的header的fragment -->
<head th:replace="~{fragments/header :: header}">
<meta charset="UTF-8">
</head>
<link href="signin.css" rel="stylesheet" th:href="@{/css/signin.css}">
<body>
	<div class="container">
		<form class="form-signin" th:action="@{~/login}" action="login" method="post">
			<div class=" col-md-5" th:if="${loginError}">
				<p class="blog-label-error" th:text="${errorMsg}"></p>
			</div>
			<h2 class="form-signin-heading">Please sign in</h2>
			<label for="username" class="sr-only">UserName</label> 
			<input
				type="text" id="username" class="form-control" name="username"
				placeholder="username" required autofocus>
				<label
				for="inputPassword" class="sr-only">Password</label> <input
				type="password" id="inputPassword" name="password" class="form-control"
				placeholder="Password" required>
			<div class="checkbox">
				<label> <input type="checkbox" name="remember-me">
					Remember me
				</label>
			</div>
			<button class="btn btn-lg btn-primary btn-block" type="submit">Sign
				in</button>
		</form>
	</div>
	<div th:replace="~{fragments/footer :: footer}"></div>
</body>
</html>